<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .box {
      color: red;
    }

    /* 相邻兄弟 */
    .box+div {
      color: rgb(255, 255, 0);
    }

    /* 普遍兄弟 */
    .content~div {
      color: green;
    }
  </style>
</head>

<body>
  <div class="home">
    <div class="box">呵呵呵</div>
    <div class="content">哈哈哈</div>
    <div>嘻嘻嘻</div>
    <div>嘿嘿嘿</div>
  </div>
</body>

</html>